<?php echo form_open_multipart('training/addtrainingclass',array('class'=>'form-horizontal','id'=>'frm'));?>
    <? echo $formsavetrainingclass;?>
    <fieldset>
    <legend><h4><?php echo $title;?></h4></legend>
    <div class="control-group">
	    <label class="control-label">Training Date *</label>
	    <div class="controls">
	      <input type="text" name="TCDate" placeholder="Training Date" class="validate[required] datepicker"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Topic *</label>
	    <div class="controls">
          <select name="CourseID" class="validate[required]">
                <?php 
                    echo '<option value="">Select...</option>';
                    foreach ($topic->result() as $row){
                        echo '<option value="'.$row->CourseID.'">'.$row->Topic.'</option>';   
                    }
                ?>
          </select>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Duration *</label>
	    <div class="controls">
	      <input type="text" name="Duration" placeholder="Duration" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Training Room *</label>
	    <div class="controls">
	      <select name="TrainingRoom" class="validate[required]">
                <?php 
                    echo '<option value="">Select...</option>';
                    foreach ($trainingroom->result() as $row){
                        echo '<option value="'.$row->TRID.'">'.$row->TrainingRoom.'</option>';   
                    }
                ?>
          </select>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Participate M *</label>
	    <div class="controls">
	      <input type="text" name="ParticipantM" placeholder="ParticipantM" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Participant F</label>
	    <div class="controls">
	      <input type="text" name="ParticipantF" placeholder="ParticipantF" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Evaluation</label>
	    <div class="controls">
	      <input type="text" name="Evaluation" placeholder="Evaluation" class="validate[required]"/>
	    </div>
  	</div>
    <div class="control-group">
	    <label class="control-label">Remark</label>
	    <div class="controls">
          <textarea name="Remark" rows="3"></textarea>
	    </div>
  	</div>
    </fieldset>
<?php echo form_close();?>